package com.tsd.base.entity;

import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.List;

/**
 * 往来单位扩展
 *
 * @author david
 * @date 2024/03/26 15:24:49
 */
@ApiModel(description = "往来单位扩展")
public class BaseRelatedPartyExt extends BaseRelatedParty implements Serializable {
    /**
     * 状态名称，合作、不合作
     */
    public static final String STATE_NAME_COOP = "合作";
    public static final String STATE_NAME_NONE_COOP = "不合作";
    public static final int STATE_COOP = 1;
    public static final int STATE_NONE_COOP = 0;
    /**
     * 记录类型：目录、客户、供应商、客户/供应商
     */
    public static final String REC_TYPE_DIRECTORY_NAME = "目录";
    public static final String REC_TYPE_CLIENT_NAME = "客户";
    public static final String REC_TYPE_SUPPLIER_NAME = "供应商";
    public static final String REC_TYPE_CLIENT_SUPPLIER_NAME = "客户/供应商";
    public static final int REC_TYPE_DIRECTORY = 0;
    public static final int REC_TYPE_CLIENT = 1;
    public static final int REC_TYPE_SUPPLIER = 2;
    public static final int REC_TYPE_CLIENT_SUPPLIER = 3;

    public String rec_type_name;
    public String state_name;
    public String display;

    private List<BaseRelatedPartyExt> children;

    public String getRec_type_name() {
        return rec_type_name;
    }

    public void setRec_type_name(String rec_type_name) {
        this.rec_type_name = rec_type_name;
    }

    public String getState_name() {
        return state_name;
    }

    public void setState_name(String state_name) {
        this.state_name = state_name;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public List<BaseRelatedPartyExt> getChildren() {
        return children;
    }

    public void setChildren(List<BaseRelatedPartyExt> children) {
        this.children = children;
    }
}
